package com.umpay.service.consum;

import com.umpay.entity.ConsumeBalControl;
import com.umpay.entity.Trans;
import com.umpay.entity.consum.ConsumOrder;

public interface ConsumeDebitcardService {
	
	public ConsumOrder find(ConsumOrder order);
	
	public int update(ConsumOrder order);
	
	public void insert(ConsumOrder order, Trans consumTrans);
	
	public int updateStateAndInsertBalControl(ConsumOrder order, ConsumeBalControl consumeBalControl);

	int updateConsumOrderAndTrans(ConsumOrder order, Trans consumeTrans);

	public Trans findTrans(Trans trans);
	
	public int updateOrderAndInsertTrans(ConsumOrder updateOrder, Trans trans);

	public void updateOAndTStateAndInsertBalControl(ConsumOrder order, ConsumeBalControl consumeBalControl,Trans trans);
}
